package getFromDBMethods;

import java.util.ArrayList;

import org.json.JSONException;

import ServletProcess.AllPOIs;
import Storage.POI;

public class getAllPOIs {
	public static ArrayList<POI> process(String currentPhoneNumber)
			throws JSONException {
		ArrayList<POI> POIlist = new ArrayList<POI>();
		String poilistJson = AllPOIs.process(currentPhoneNumber);
		// Reverse ArrayList.toString
		if (!poilistJson.equals("[]")) {
			POIlist = JsonProcess.jAllPOIs.process(poilistJson);
		}
		return POIlist;
	}
}
